package com.mes.material.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mes.material.mapper.MaterialListMapper;
import com.mes.material.domain.MaterialList;
import com.mes.material.service.IMaterialListService;

/**
 * 物料基础Service业务层处理
 * 
 * @author itflash
 * @date 2025-02-27
 */
@Service
public class MaterialListServiceImpl implements IMaterialListService 
{
    @Autowired
    private MaterialListMapper materialListMapper;

    /**
     * 查询物料基础
     * 
     * @param id 物料基础主键
     * @return 物料基础
     */
    @Override
    public MaterialList selectMaterialListById(Long id)
    {
        return materialListMapper.selectMaterialListById(id);
    }

    /**
     * 查询物料基础列表
     * 
     * @param materialList 物料基础
     * @return 物料基础
     */
    @Override
    public List<MaterialList> selectMaterialListList(MaterialList materialList)
    {
        return materialListMapper.selectMaterialListList(materialList);
    }

    /**
     * 新增物料基础
     * 
     * @param materialList 物料基础
     * @return 结果
     */
    @Override
    public int insertMaterialList(MaterialList materialList)
    {
        return materialListMapper.insertMaterialList(materialList);
    }

    /**
     * 修改物料基础
     * 
     * @param materialList 物料基础
     * @return 结果
     */
    @Override
    public int updateMaterialList(MaterialList materialList)
    {
        return materialListMapper.updateMaterialList(materialList);
    }

    /**
     * 批量删除物料基础
     * 
     * @param ids 需要删除的物料基础主键
     * @return 结果
     */
    @Override
    public int deleteMaterialListByIds(Long[] ids)
    {
        return materialListMapper.deleteMaterialListByIds(ids);
    }

    /**
     * 删除物料基础信息
     * 
     * @param id 物料基础主键
     * @return 结果
     */
    @Override
    public int deleteMaterialListById(Long id)
    {
        return materialListMapper.deleteMaterialListById(id);
    }
}
